import { RouteRecordRaw } from 'vue-router';
import Layout from '@/layouts/index.vue';

const distribution: RouteRecordRaw[] = [
  {
    path: '/distribution',
    name: 'distribution',
    component: Layout,
    meta: {
      title: '分销管理',
      icon: 'shop',
    },
    children: [
      {
        path: 'approval',
        name: 'distributionApproval',
        component: () => import('@/pages/distribution/approval/index.vue'),
        meta: {
          title: '订单审批',
        },
      },
      {
        path: 'approval/detail/:id',
        name: 'distributionApprovalDetail',
        component: () => import('@/pages/distribution/approval/detail.vue'),
        meta: {
          title: '订单详情',
          hidden: true, // 在菜单中隐藏
        },
      },
    ],
  },
];

export default distribution; 